import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    { path: '/', component: () => import('@/views/Home/HomeView.vue') },
    { path: '/video', component: () => import('@/views/video/VideoView.vue') },
    {
      path: '/aimtron', component: () => import('@/views/Aimtron/index.vue'), children: [
        { path: 'domestic', component: () => import('@/views/Aimtron/components/domestic.vue') },
        { path: 'original', component: () => import('@/views/Aimtron/components/original.vue') },
        { path: 'bag', component: () => import('@/views/Aimtron/components/bag.vue') },
        { path: 'animestate', component: () => import('@/views/Aimtron/components/animestate.vue') },
      ]
    },
    {
      path: '/animation', component: () => import('@/views/Animation/index.vue'), redirect: '/animation/madamv', children: [
        { path: 'madamv', component: () => import('@/views/Animation/components/madamv.vue') },
        { path: 'mmd3d', component: () => import('@/views/Animation/components/mmd3d.vue') },
        { path: 'book', component: () => import('@/views/Animation/components/book.vue') },
        { path: 'happy', component: () => import('@/views/Animation/components/happy.vue') }
      ]
    },
    {
      path: '/bangumi', component: () => import('@/views/bangumi/index.vue'), children: [
        { path: 'extend', component: () => import('@/views/bangumi/components/extend.vue') },
        { path: 'finished', component: () => import('@/views/bangumi/components/finished.vue') },
        { path: 'message', component: () => import('@/views/bangumi/components/message.vue') },
        { path: 'serial', component: () => import('@/views/bangumi/components/serial.vue') }
      ]
    },
    {
      path: '/dance', component: () => import('@/views/Dance/index.vue'), redirect: '/dance/curtilagedance', children: [
        { path: 'curtilagedance', component: () => import('@/views/Dance/components/CurtilageDance.vue') },
        { path: 'streetdance', component: () => import('@/views/Dance/components/StreetDance.vue') },
        { path: 'stardance', component: () => import('@/views/Dance/components/StarDance.vue') },
        { path: 'chinesedance', component: () => import('@/views/Dance/components/ChineseDance.vue') }
      ]
    },
    { path: '/game', component: () => import('@/views/Game/index.vue') },
    {
      path: '/music', component: () => import('@/views/music/index.vue'), children: [
        { path: 'concertmusic', component: () => import('@/views/music/components/ConcertMusic.vue') },
        { path: 'covermusic', component: () => import('@/views/music/components/CoverMusic.vue') },
        { path: 'originalmusic', component: () => import('@/views/music/components/OriginalMusic.vue') },
        { path: 'vocautau', component: () => import('@/views/music/components/VocaMusic.vue') }
      ]
    }
  ]
})

export default router

